<template>
    <div>
        article-detail
    </div>
</template>

<script>
    export default {
        name: "article-detail",
        validate ({ params }) {
            // 必须是number类型
            return /^\d+$/.test(params.id)
        }
    }
</script>

<style scoped>

</style>